<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="../../views/common/taglibs.jsp"%>

  <div class="search">
	    <form id="accountDetailListFrm" name="accountDetailListFrm" action="/back/account/queryAccountDetails.htm" method="post" onsubmit="return false;">
		    <table width="99%" border="0" cellspacing="0" cellpadding="0">
				<tr>
			        <td>
			      	<th>
			      		会员账号：
			      	</th>
			      	<td>
			      		<input type="text" class="fl" name="memberName" value="${detail.memberName}"/>
			      	</td>
			      	<th>
			      		交易订单号：
			      	</th>
			      	<td>
			      		<input type="text" class="fl" name="tranNo" value="${detail.tranNo}"/>
			      	</td>

					<td class="tc"><input class="btSearch" name="" type="button" onclick="searchAccountDetailSubmit();" /></td>
				</tr>
		    </table>
	    </form>
  </div>
  
  <div class="tabtxet" id="listGameWind">
    <table class="tablist" cellspacing="0" cellpadding="0">
      <tr class="tabTop">
        <td colspan="17"><div class="title">交易明细(共<strong>${page.totalCounts}</strong>条)</div>
          </td>
      </tr>
      <tr>
        <th>会员账号</th>
        <th>交易订单号</th>
		<th>收入</th>
        <th>支出</th>
        <th>交易前余额</th>
        <th>当前余额</th>
        <th>创建时间</th>
      </tr>
      <c:forEach items="${details}" var="detail" varStatus="status">
	      <tr>
	        <td>${detail.memberName}</td>
	        <td>${detail.tranNo}</td>
			<td>${detail.income}</td>
	        <td>${detail.payout}</td>
	        <td>${detail.preBalanceShow}</td>
	        <td>${detail.curBalanceShow}</td>
	        <td>${detail.timeAddStr}</td>
	      </tr>
      </c:forEach>
      <tr>
      	<td colspan="17">
	      	共${page.totalPages}页 
	      	第${page.pageNum}页 
	      	<c:if test="${!page.showFirst}">首页</c:if>
	      	<c:if test="${page.showFirst}"><a href="#" onclick="doActionNoCallback('core', '${appServer}/back/account/queryAccountDetails.htm?pageNum=1', accountDetailListParamNoPage);">首页</a></c:if>
	      	<c:if test="${!page.showPrevious}">上一页</c:if>
	      	<c:if test="${page.showPrevious}"><a href="#" onclick="doActionNoCallback('core', '${appServer}/back/account/queryAccountDetails.htm?pageNum=${page.pageNum-1}', accountDetailListParamNoPage);">上一页</a></c:if>
	      	<c:if test="${!page.showNext}">下一页</c:if>
	      	<c:if test="${page.showNext}"><a href="#" onclick="doActionNoCallback('core', '${appServer}/back/account/queryAccountDetails.htm?pageNum=${page.pageNum+1}', accountDetailListParamNoPage);">下一页</a></c:if>
	      	<c:if test="${!page.showLast}">尾页</c:if>
	      	<c:if test="${page.showLast}"><a href="#" onclick="doActionNoCallback('core', '${appServer}/back/account/queryAccountDetails.htm?pageNum=${page.totalPages}', accountDetailListParamNoPage);">尾页</a></c:if>
      	</td>
      </tr>
    </table>
  </div>

	<script type="text/javascript">
	    accountDetailListParamNoPage = {'memberName' : '${detail.memberName}', 'tranNo' : '${detail.tranNo}'};
    </script>